﻿using Wizard.Runtime;

namespace Wizard.Functions
{
    public class Concat : TwoParams<string, string, string>
    {
        public Concat(IHasValue<string> string1, IHasValue<string> string2)
            : base("Concat", FunctionType.function, string1, string2)
        {
        }


        protected override string RecalcValue(IRunContext context)
        {
            return mParam1.Value(context) + mParam2.Value(context);
        }
    }
}